package com.audaque.springboot.foshanupload.core.handler;

import lombok.extern.slf4j.Slf4j;

/**
 * @author zgb
 * @desc ...
 * @date 2023-08-25 15:44:00
 */
@Slf4j
public class ThreadUncaughtExceptionHandlerImpl implements Thread.UncaughtExceptionHandler {
    @Override
    public void uncaughtException(Thread t, Throwable e) {
        log.error("异常捕获---------------------------------");
        log.error("ThreadUncaughtExceptionHandler处理异步常异-->{},{}", t.getName(), e.getMessage());
        e.printStackTrace();

        log.error("异常捕获---------------------------------");

    }

}
